<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_count" data-rule="required" min="0" class="form-control" name="row[max_count]" type="number" value="0">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Per_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-per_count" data-rule="required" class="form-control" name="row[per_count]" type="number" value="1">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('At_least')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-at_least" data-rule="required" class="form-control" step="0.01" name="row[at_least]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group hide">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount" data-rule="required,range(0~100)" class="form-control" name="row[discount]" type="number" value="0">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('领取时间')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-receive_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:00" data-use-current="true" name="row[receive_start_time]" type="text" value="">
        </div>
        <div class="col-xs-12 col-sm-4">
            <input id="c-receive_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:59" data-use-current="true" name="row[receive_end_time]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('使用时间')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-use_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:00" data-use-current="true" name="row[use_start_time]" type="text" value="">
        </div>
        <div class="col-xs-12 col-sm-4">
            <input id="c-use_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:59" data-use-current="true" name="row[use_end_time]" type="text" value="">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Freight_type')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--                        -->
<!--            <select  id="c-freight_type" data-rule="required" class="form-control selectpicker" name="row[freight_type]">-->
<!--                {foreach name="freightTypeList" item="vo"}-->
<!--                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>-->
<!--                {/foreach}-->
<!--            </select>-->

<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Range_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio" id="c-range_status">
            {foreach name="rangeStatusList" item="vo"}
            <label for="row[range_status]-{$key}"><input id="row[range_status]-{$key}" name="row[range_status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="range-courses hide">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('课程选择')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <span><button type="button" class="btn btn-primary course-choose" ><i class="fa fa-list"></i> {:__('Choose')}</button></span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('')}</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table">
                <thead>
                <tr>
                    <th style="text-align: left;width:20%">缩略图</th>
                    <th style="text-align: left;width:50%">名称</th>
                    <th style="text-align: left;width: 30%">操作</th>
                </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
    </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
